package o;

import android.content.Context;
import java.util.HashMap;
import java.util.Map;

public class ery {
    private static Map<String, Class<? extends erx>> ॱ = new HashMap(5);

    public static erx ˎ(String str, Context context) {
        Class cls = (Class) ॱ.get(str);
        if (cls == null) {
            return null;
        }
        erx o_erx;
        try {
            o_erx = (erx) cls.getDeclaredConstructor(new Class[]{Context.class}).newInstance(new Object[]{context});
        } catch (Throwable e) {
            Logger.ˋ("InterrupterFactory", "NoSuchMethodException error", e);
            o_erx = null;
        } catch (Throwable e2) {
            Logger.ˋ("InterrupterFactory", "InstantiationException error", e2);
            o_erx = null;
        } catch (Throwable e22) {
            Logger.ˋ("InterrupterFactory", "IllegalAccessException error", e22);
            o_erx = null;
        } catch (Throwable e222) {
            Logger.ˋ("InterrupterFactory", "InvocationTargetException error", e222);
            o_erx = null;
        } catch (Throwable e2222) {
            Logger.ˋ("InterrupterFactory", "unknown error", e2222);
            o_erx = null;
        }
        return o_erx;
    }
}
